//签订中--申请盖章
import request from "@/utils/request.js";

// 分页查询待办公文列表
export function getDocProcessingPageList(query) {
    return request({
        url: '/doc/process/processingPage',
        method: 'get',
        params: query
    })
}

// 分页查询已办公文列表
export function getDocProcessedPageList(query) {
    return request({
        url: '/doc/process/processedPage',
        method: 'get',
        params: query
    })
}

// 查询公文页面所有权限控制按钮
export function getButtons(id) {
    return request({
        url: '/doc/process/getButton/' + id,
        method: 'get'
    })
}

// 查询公文基本信息
export function getDocProcessBasicInfo(id) {
    return request({
        url: '/doc/process/getDocBasicInfo/' + id,
        method: 'get'
    })
}

//退回
export function reject(data) {
    return request({
        url: '/doc/process/back',
        method: 'put',
        data: data
    })
}

//审核修订--通过
export function auditApproved(data) {
    return request({
        url: '/doc/process/audit',
        method: 'put',
        data: data
    })
}

//会签--通过
export function jointSignApproved(data) {
    return request({
        url: '/doc/process/jointSign',
        method: 'put',
        data: data
    })
}

//领导签发--通过
export function leaderSignApproved(data) {
    return request({
        url: '/doc/process/leaderSign',
        method: 'put',
        data: data
    })
}

//签章--通过
export function signApproved(data) {
    return request({
        url: '/doc/process/sign',
        method: 'put',
        data: data
    })
}